<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // var arr = [10, 100, 1000];
        function map(arr) { 
            var newarr = [];
            for (i = 0; i < arr.length; i++) {
                var res = arr[i];
                res = arr[i] * (1 + 0.3);
                // console.log(res)
                newarr.push(res);
            }
            // console.log(newarr);
            return newarr;
        }
        var res = map([10, 100, 1000]);
        console.log(res);
        
        var res = map([600,700,800,900])
        console.log(res);
    </script>
</body>

</html>